

package net.qiqbframework.commandhandling;

import net.qiqbframework.messaging.MessageHandler;

import javax.annotation.Nonnull;


@FunctionalInterface
public interface DuplicateCommandHandlerResolver {


    CommandMessageHandler resolve(@Nonnull String commandName,
                                                      @Nonnull CommandMessageHandler registeredHandler,
                                                      @Nonnull CommandMessageHandler candidateHandler);
}
